package com.test.controller;

import com.test.entity.user;
import com.test.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by 幻 on 2022/4/7.
 */


@RestController


public class UserController {

    @Autowired
    private UserService userService;
    @RequestMapping("/zjq")



    public List<user> getName(){
        return userService.findAll();
    }


}
